<template>
    <input type="hidden" name="_token" :value="token">
</template>

<script>
    export default {
        name: "CsrfTokenField",
        data: function () {
            return {token: null}
        }, created: function () {
            this.token = document.head.querySelector('meta[name="csrf-token"]').content;
        }
    }
</script>
